<div class="container" style="min-height: 206px;">   
    <div class="heading"><a id="sidebaropengear" onclick="showSideBarSettings();" href="javascript:void(0);"><img width=16" height="16" src="./images/gear.png" alt="" /></a>Information</div>
    <div id="selectedcustomernav" class="inside" style="padding-bottom:0px !important;">
        <input type="text" id="remote-users" style="width:143px !important;display:none"/>
        <?php if(isset($customer)):?>
        <div class="selectedcustomer" style="text-align:center;">
            <span id="selectedcustomer"><a href="index.php?r=Customers/update&id=<?=$customer->custno?>"><?php echo $customer->firstname.' '.$customer->lastname?></a></span>

        </div>
        <?php elseif(isset($dispatch)):?>
        <div class="selectedcustomer" style="text-align:center;">
            <center><img src="<?=getImage($dispatch->location->customer->image,'images/content/',75,75);?>"/></center>
            <span id="selectedcustomer"><a href="index.php?r=Customers/update&id=<?=$dispatch->location->customer->custno?>"><?php echo $dispatch->location->customer->lastname?></a></span>

        </div>
        <?php endif?>


   </div>
    
    <div class="inside" style="padding-top:0px; padding-bottom:0px;">
        <h5 style="padding-left:11px;">Available Actions</h5>
        <ul class="links" style="margin-left:0px !important;">
            <li id='blankforvalidation2' style="display:none">&nbsp;</li>     
            <?php if($type==DOCTYPE_DISPATCH):?>
            
                <li><a href='index.php?r=documents/create&dispatch=<?=$dispatch->dispatch?>&type=<?=$type?>'>Add Document</a></li>
                <li><a href='index.php?r=documents/index&dispatch=<?=$dispatch->dispatch?>&type=<?=$type?>'>Manage Document</a></li>    
            
            <?php elseif($type==DOCTYPE_CUST):?>

                <li><a id="createDocument" href="javascript:void(0)">Add Document</a></li>
                <li><a href='index.php?r=documents/index&custno=<?=$customer->custno?>&type=<?=$type?>'>Manage Document</a></li>    

            <?php elseif($type==DOCTYPE_LOC):?>

                <li><a id="createDocument" href="javascript:void(0)">Add Document</a></li>
                <li><a href='index.php?r=documents/index&custno=<?=$location->custno?>&locno=<?=$location->locno?>&type=<?=$type?>'>Manage Document</a></li>

            <?php endif?>
          
        </ul>
    </div>
    
    
    

</div>